import { mapActions, mapGetters } from 'vuex'
export const ebookMixin = {
  computed: {
    ...mapGetters([
      'get_fileName',
      'get_menu_visible',
      'get_setting_visible',
      'get_default_fontsize',
      'get_book_handle',
      'get_default_fontfamily',
      'get_font_family_visible',
      'get_default_theme'
    ])
  },
  methods: {
    ...mapActions([
      'set_fileName',
      'set_menu_visible',
      'set_setting_visible',
      'set_book_handle',
      'set_default_fontSize',
      'set_default_family',
      'set_font_family_visible',
      'set_default_theme'
    ])
  }
}
